"""
1、以下所有员工中工资最高的员工
2、统计所有员工的工资总和
"""
from Employee import Employee

list_employees = [
    Employee(1001,9001,"唐僧",60000),
    Employee(1002,9002,"孙悟空",50000),
    Employee(1003,9002,"猪八戒",40000),
    Employee(1004,9001,"沙僧",30000),
    Employee(1005,9001,"小白龙",1500),
]

max_money = list_employees[0]
for item in list_employees:
    if item.money > max_money.money:
        max_money = item

print(max_money)

money = 0
for i in list_employees:
    money += i.money

print(money)